home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / flight-of-the-museum.swf / scripts / com / google / analytics / utils / Protocols.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  824 b   |  37 lines

  1. package com.google.analytics.utils
  2. {
  3.    public class Protocols
  4.    {
  5.       
  6.       public static const none:Protocols = new Protocols(0,"none");
  7.       
  8.       public static const HTTPS:Protocols = new Protocols(3,"HTTPS");
  9.       
  10.       public static const file:Protocols = new Protocols(1,"file");
  11.       
  12.       public static const HTTP:Protocols = new Protocols(2,"HTTP");
  13.        
  14.       
  15.       private var _value:int;
  16.       
  17.       private var _name:String;
  18.       
  19.       public function Protocols(value:int = 0, name:String = "")
  20.       {
  21.          super();
  22.          _value = value;
  23.          _name = name;
  24.       }
  25.       
  26.       public function valueOf() : int
  27.       {
  28.          return _value;
  29.       }
  30.       
  31.       public function toString() : String
  32.       {
  33.          return _name;
  34.       }
  35.    }
  36. }
  37.